using BruteForce.UserInterface.Abstracts;
using BruteForce.Utilities;
using Microsoft.Xna.Framework;

namespace BruteForce.UserInterface.UIControls
{
    public abstract class AbstractMenuItem : AbstractUIControl
    {
        public AbstractMenuItem(string name, Rectangle surroundingRectangle)
            : base(name, surroundingRectangle)
        {
        }

        public override void Draw(GameTime gameTime)
        {
            Color color;
            color = IsFocused() ? Color.Blue : Color.Red;
            Draws.DrawString(RelativeUIcontrolRectangle.X, RelativeUIcontrolRectangle.Y, Name, color);
        }
    }
}